<script setup>
import { ref, onMounted } from 'vue'
//业务1
const money = ref(100)
onMounted(() => {
    money.value = 1000
    console.log('11111');
})
//业务2
const count = ref(1)
onMounted(() => {
    count.value++
    console.log('22222');
})
</script>

<template>
    <div>
        <div>{{ money }}</div>
        <div>{{ count }}</div>
    </div>
</template>

<style scoped></style>